<template>
	<view>
		<u-navbar title="信息平台"></u-navbar>
		<button type="primary" @tap="openLevel">打开地址</button>
		<level-linkage ref="levelLinkage" :pickerValueDefault="pickerValueDefault" :allData="treeData"
			@onConfirm="onConfirm" themeColor='#007AFF'></level-linkage>
	</view>
</template>

<script>
	import levelLinkage from "@/components/three-level-linkage/linkage.nvue"
	import treeData from "./treeData.js"
	export default {
		data() {
			return {
				treeData: treeData,
				pickerText: '',
				pickerValueDefault: [0, 0,-1],
			};
		},
		components: {
			levelLinkage
		},
		methods: {
			openLevel() {
				this.$refs.levelLinkage.open();
			},
			onConfirm(e) {
				// e 确认后选中的数据
				this.pickerText = JSON.stringify(e)
				console.log(e)
			}

		}
	}
</script>

<style lang="scss">

</style>
